/***
 * Brian Hession -- February 22, 2013
 *
 * Player
 *
 * Date				Changes
 * 2/22/2013		Initial Version
 *
 */

#ifndef PLAYER_H
#define PLAYER_H

#include <SDL/SDL.h>
#include "graphics/animation.h"
#include "graphics/graphics.h"
#include "keyboard/keymap.h"

class Player {
	public:
		Player();
		~Player();
		void init();
		void setPosition( SDL_Rect rect );
		void setPosition( int x, int y );
		void calculate( int delta );
		void draw( SDL_Surface* screen );
		void keyPressed( int key );
		void keyReleased( int key );
	protected:
		SDL_Surface* image;
		SDL_Rect pos;
		int vx,vy;
		Animation a;
		Keymap key;
};

#endif
	
